def divide(a,b):
    try:
        return a/b;
    except ZeroDivisionError as e:
        print("被0除")
        #可以直接抛出异常对象
        # raise e
        raise Exception('发现问题，被0除')

a = 10
b = 0
try:
    print(divide(a,b))
except Exception as e:
    print(f'main:{e}')